package com.lmx.repoDomain.local.tmodel;

import com.lmx.repoDomain.tmodel.BaseDataEntity;

import io.katharsis.resource.annotations.JsonApiId;
import io.katharsis.resource.annotations.JsonApiResource;
import javax.persistence.*;

/**
 * 本地设备类
 */
@Entity
@Table(name = "tnb_local_device")
@JsonApiResource(type = "localdevice")
public class LocalDevice  {
	private Long id;
	private String code;// mac
	private String business;// 业务类型
	private Short type;// 类型： 0 hbox 1 scanner 2 button/hbeacon
	private Integer createTime;// 创建时间
	private Integer updateTime;// 更新时间
	private String remark;// 备注

	@JsonApiId
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name = "code")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "business")
	public String getBusiness() {
		return business;
	}

	public void setBusiness(String business) {
		this.business = business;
	}

	@Column(name = "type")
	public Short getType() {
		return type;
	}

	public void setType(Short type) {
		this.type = type;
	}

	@Column(name = "create_time")
	public Integer getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Integer createTime) {
		this.createTime = createTime;
	}

	@Column(name = "update_time")
	public Integer getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Integer updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "remark")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
